package reticulado;

public class ParameterNode extends AbstractNode {

    public ParameterNode(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "PN:" + id;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ParameterNode other = (ParameterNode) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 89 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }
    @Override
    public int compareTo(Object o) {
        final ParameterNode other = (ParameterNode) o;
        return this.id.compareTo(other.id);
    }
}
